<style>
    .dialog-sp{
        background-color: #1ab394;
    }
    .dialog-group-sp{
        float: left;
    }
</style>

<div class="row" ms-controller="Test">
    <!--标题-->
    <div class="col-md-12">

        <div class="row">
            <button class="pull-right btn btn-info" data-toggle="modal" data-target="#myModal">添加方案</button>
            <!-- 模态框（Modal） -->
            <div class="modal fade dialog" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                            <h3 class="modal-title" id="myModalLabel" style="text-align: center">添加方案</h3>
                        </div>
                        <div class="modal-body">
                            <div class="input-group input-group-sm">
                                <span class="input-group-addon dialog-sp">方案名称</span>
                                <input type="text" class="form-control" :duplex="@waysName">
                            </div>
                            <br>
                            <!--<div class="input-group input-group-sm">-->
                            <!--<span class="input-group-addon dialog-sp">选择科目</span>-->
                            <!--<select class="form-control">-->
                            <!--<option>计算机</option>-->
                            <!--<option>软件工程</option>-->
                            <!--</select>-->
                            <!--</div>-->
                            <!--<br>-->
                            <div class="input-group input-group-sm">
                                <span class="input-group-addon dialog-sp">单选题</span>
                                <input type="text" class="form-control " :duplex="@waysDXNum" style="width: 15%;min-width: 40px">
                                <span class="input-group-addon dialog-sp dialog-group-sp">道</span>
                                <input type="text" class="form-control" :duplex="@waysDXScore" style="width: 15%;min-width: 40px">
                                <span class="input-group-addon dialog-sp dialog-group-sp" >分/道</span>
                            </div>
                            <br>
                            <div class="input-group input-group-sm">
                                <span class="input-group-addon dialog-sp">多选题</span>
                                <input type="text" class="form-control " :duplex="@waysMDXNum" style="width: 15%;min-width: 40px">
                                <span class="input-group-addon dialog-sp dialog-group-sp">道</span>
                                <input type="text" class="form-control" :duplex="@waysMDXScore" style="width: 15%;min-width: 40px">
                                <span class="input-group-addon dialog-sp dialog-group-sp" >分/道</span>
                            </div>
                            <br>
                            <div class="input-group input-group-sm">
                                <span class="input-group-addon dialog-sp">判断题</span>
                                <input type="text" class="form-control " :duplex="@waysPDNum" style="width: 15%;min-width: 40px">
                                <span class="input-group-addon dialog-sp dialog-group-sp">道</span>
                                <input type="text" class="form-control" :duplex="@waysPDScore" style="width: 15%;min-width: 40px">
                                <span class="input-group-addon dialog-sp dialog-group-sp" >分/道</span>
                            </div>
                            <br>
                            <!--<div class="input-group input-group-sm">-->
                            <!--<span class="input-group-addon dialog-sp">填空题</span>-->
                            <!--<input type="text" class="form-control " style="width: 15%;min-width: 40px">-->
                            <!--<span class="input-group-addon dialog-sp dialog-group-sp">道</span>-->
                            <!--<input type="text" class="form-control"style="width: 15%;min-width: 40px">-->
                            <!--<span class="input-group-addon dialog-sp dialog-group-sp" >分/道</span>-->
                            <!--</div>-->
                            <!--<br>-->
                            <!--<div class="input-group input-group-sm">-->
                            <!--<span class="input-group-addon dialog-sp">选择难度</span>-->
                            <!--<select class="form-control" :duplex="@waysLevel" style="width: 50%;min-width: 100px">-->
                            <!--<option>1</option>-->
                            <!--<option>2</option>-->
                            <!--<option>3</option>-->
                            <!--<option>4</option>-->
                            <!--</select>-->
                            <!--</div>-->
                            <!--<br>-->
                            <div class="input-group input-group-sm">
                                <span class="input-group-addon dialog-sp">总分</span>
                                <input type="text" class="form-control " :duplex="@waysAllScore" style="width: 40%;min-width: 40px">
                                <span class="input-group-addon dialog-sp dialog-group-sp">分</span>
                            </div>
                            <br>
                            <!--<div class="input-group input-group-sm">-->
                            <!--<span class="input-group-addon dialog-sp">考试时间</span>-->
                            <!--<input type="text" class="form-control " :duplex="@waysTime" style="width: 40%;min-width: 40px">-->
                            <!--<span class="input-group-addon dialog-sp dialog-group-sp">分钟</span>-->
                            <!--</div>-->
                            <!--<br>-->
                            <!--<div class="input-group input-group-sm">-->
                            <!--<input type="checkbox">&nbsp;知识点均衡-->
                            <!--</div>-->
                            <!--</div>-->
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                                <button type="button" class="btn btn-primary" :click="@addPlan" data-dismiss="modal">提交</button>
                            </div>
                        </div><!-- /.modal-content -->
                    </div><!-- /.modal -->
                </div>
            </div>

            <div class="search_head col-md-8" style="margin-top: 10px">
                <span style=" font-size: 15px;">方案名称 </span>
                <input type="text" class="form-control" :duplex="@ksName" style=" display: inline-block;width: 180px;" >
                <!--<span style=" font-size: 15px;margin-left: 20px">考试批次 </span>-->
                <!--<input type="text" class="form-control" :duplex="@ksNum" style=" display: inline-block;width: 180px;">-->
                <button type="button" class="btn btn-default navbar-btn" style="margin-left: 20px" ms-click="@waysallfn">查询</button>
            </div>



            <!-- 列表-->
            <br>

            <table class="table table-responsive table-bordered" style="margin: 50px 0;text-align: center;" id="methodTable">
                <thead style="word-break: keep-all;white-space: nowrap">
                <tr>
                    <!--<td><input type="checkbox">&nbsp;全选</td>-->
                    <td style="display: none">UID</td>
                    <td style="min-width: 40px;text-align: right">#</td>
                    <td>方案名称</td>
                    <td>单选题（分数）</td>
                    <td>多选题（分数）</td>
                    <td>判断题（分数）</td>
                    <!--<td>填空题（分数）</td>-->
                    <!--<td>大题（分数）</td>-->
                    <!--<td>主观题（分数）</td>-->
                    <td>总分</td>
                    <td style="min-width: 145px;">操作</td>
                </tr>
                </thead>
                <tbody>
                <tr ms-for="(k,v) in @waysall" class="ola-pointer">
                    <td style="display: none">{{v.FID}}</td>
                    <td  style="text-align: right">
                        {{k+1}}
                    </td>
                    <td >
                        <input type="checkbox" style="display: none;">&nbsp;&nbsp;{{v.Name}}
                    </td>
                    <td>{{v.DXnumber}}道({{v.DXscore}}分/道)</td>
                    <td>{{v.DDXnumber}}道({{v.DDXscore}}分/道)</td>
                    <!--<td onclick="Translayer(v.CID)">Translayer({{v.CID}})</td>-->
                    <td>{{v.PDnumber}}道({{v.PDscore}}分/道)</td>
                    <td>{{v.Score}}</td>
                    <!--<td>{{v.KID}}</td>-->
                    <!--<td>{{v.SID}}</td>-->
                    <!--<td></td>-->
                    <td>
                        <button class="btn btn-sm btn-link" onclick="editways(this)"  ms-click="@Type='Edit'">修改</button>
                        <button class="btn btn-sm btn-link"  onclick="deletways(this)">删除</button>
                    </td>
                </tr>
                </tbody>
                <tfoot>
                <tr>
                    <td style="display: none;">
                        <input type="checkbox" >全选
                    </td>
                    <td colspan="80">
                        <div class="row">
                            <button class="btn btn-sm btn-link" style="float: right;margin-right: 10%">  批量删除</button>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="80">
                        <div class="row">
                            <div class="col-md-5">
                                <span>第&nbsp;</span><span>{{@Search.P}}</span><span>&nbsp;页</span>&nbsp;&nbsp;
                                <span>共&nbsp;</span><span>{{@Search.TP}}</span><span>&nbsp;页</span>
                            </div>
                            <div class="col-md-5">
                                <ul class="pagination" style="margin: 0 0 0 0;">
                                    <li :if="@waysall.P>1"><a :click="@waysall.P--">&laquo;</a></li>
                                    <li :for="v in @Search.Pages" :click="@Search.P=v"><a
                                            :class="[(@Search.P==v?'selected':'')]">{{v}}</a></li>
                                    <li :if="@Search.P<@Search.TP"><a :click="@Search.P++">&raquo;</a></li>
                                </ul>
                            </div>
                        </div>
                    </td>
                </tr>
                </tfoot>
            </table>


            <!-- 分页-->
            <div style="margin-bottom: 120px;">
            </div>
            <div :if="@html.length>0" class="layui-layer-shade" id="layui-layer-shade" times="1"
                 style="z-index:19891014; background-color:#000; opacity:0.3; filter:alpha(opacity=30);"></div>
            <div :if="@html.length>0" class="layui-layer layui-layer-page layui-layer-demo layer-anim-02"
                 type="page" times="1" showtime="0" contype="string"
                 style="z-index: 19891015; width: 80%; height: 80%; top: 87.5px; left: 144px;">
                <div id="" class="layui-layer-content" style="height: 698px;" ms-html="@html">
                </div>
                <span class="layui-layer-setwin"><a class="layui-layer-ico layui-layer-close layui-layer-close2"
                                                    href="javascript:;" :click-1="@html=''" :click-2="@Type='List'">

        </a></span><span class="layui-layer-resize"></span>
            </div>
        </div>

    </div>
</div>